Browser profiles follow a specific format. To avoid parsing errors during target browser checks, follow these rules when editing or creating profiles:
![]() |
The first line is reserved for the name of the profile. It must be followed by a single carriage return. The name on this line appears in the Target Browser Check dialog box and in the target check report. It must be unique. |
![]() |
The second line is reserved for the designator PROFILE_TYPE=BROWSER_PROFILE . Dreamweaver uses this line to determine which documents are browser profiles. It must not be changed or moved. |
![]() |
Two hyphens (-- ) at the beginning of a line indicate a comment (that is, that the line will be ignored during the target check process). |
![]() |
A space must appear in these places: before the closing angle bracket (>) on the !ELEMENT line, after the opening parentheses, before the closing parentheses, and before and after each pipe (|) in the value list. |
![]() |
An exclamation point without a space must appear before each of the following words: ELEMENT , ATTLIST , Error , msg , and htmlmsg (!ELEMENT, !ATTLIST, !Error, !msg, !htmlmsg ). |
![]() |
!Error and !Warning may appear within the !ELEMENT or the !ATTLIST area. |
![]() |
!msg messages can contain only plain text. !htmlmsg messages can contain any valid HTML, including hyperlinks. |
![]() |
HTML comments (<!-- --> ) cannot be listed as tags in browser profiles because they interfere with parsing. Dreamweaver does not report an error for comments because all browsers support them. |
The syntax for a tag entry is
<!ELEMENThtmlTag
NAME="tagName" ><!ATTLISThtmlTag
unsupportedAttribute1
!Error !msg="TheunsupportedAttribute1
of thehtmlTag
is not supported. Try usingsupportedAttribute1
for a similar effect."supportedAttribute1
supportedAttribute2
(validValue1
|validValue2
|validValue3
)unsupportedAttribute2
!Error !htmlmsg="<b>Don't ever use thisunsupportedAttribute2
of thehtmlTag
!!</b>" >
where
htmlTag
is the tag as it appears in an HTML document.
tagName
is what the tag is called (for example, the HR
tag is called "horizontal rule"). The NAME
attribute is optional. If specified, tagName
is used in the error message; if a name is not supplied, htmlTag
is used.
unsupportedAttribute
is an attribute that is not supported. Any tags or attributes not specifically mentioned are assumed to be unsupported. Specify unsupported tags or attributes only when you want to create a custom error message.
supportedAttribute
is an attribute that is supported by htmlTag
. Only tags listed without an !Error
designation are considered supported by the browser.
validValue
is a value that is supported by the attribute.
The following example shows an entry for the APPLET
tag that would be accurate for Navigator 3.0:
<!ELEMENT APPLET Name="Java Applet" ><!ATTLIST APPLET Align ( top | middle | bottom | left | right | absmiddle | absbottom | baseline | texttop ) Alt Archive Class !Warning !htmlmsg="This browser ignores the <CODE>CLASS</CODE> attribute for the <CODE>APPLET</CODE> tag." Code Codebase Height HSpace ID !Warning !htmlmsg="This browser ignores the <CODE>ID</CODE> attribute for the <CODE>APPLET</CODE> tag. Use <CODE>NAME</CODE> instead." Name Style !Warning !htmlmsg="This browser ignores the <CODE>STYLE</CODE> attribute for the <CODE>APPLET</CODE> tag." VSpace Width >